package com.yunxin.core.infra.persistence.entity.channel;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 渠道推广单价配置版本表
 *
 * @author zero°
 * @since   2023-11-24
 */
public class ChannelPromotionUnitPriceConfigVersionDO implements Serializable {
    /**
     * 主键
     */
    private Long id;

    /**
     * 推广id
     */
    private Long promotionId;

    /**
     * 生效时间
     */
    private Date takeEffectTime;

    /**
     * 计费类型 1.cpa
     */
    private Integer chargedType;

    /**
     * 计费单价
     */
    private BigDecimal chargedPrice;

    /**
     * 计费方式 1.uv 2.注册 3.表单
     */
    private Integer chargedWay;

    /**
     * 当前版本
     */
    private Long currentVersion;

    /**
     * 标识删除 0.存在 1.删除
     */
    private Integer isDel;

    /**
     * 创建人
     */
    private String creator;

    /**
     * 修改人
     */
    private String editor;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date editTime;

    /**
     * 版本号
     */
    private Long version;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPromotionId() {
        return promotionId;
    }

    public void setPromotionId(Long promotionId) {
        this.promotionId = promotionId;
    }

    public Date getTakeEffectTime() {
        return takeEffectTime;
    }

    public void setTakeEffectTime(Date takeEffectTime) {
        this.takeEffectTime = takeEffectTime;
    }

    public Integer getChargedType() {
        return chargedType;
    }

    public void setChargedType(Integer chargedType) {
        this.chargedType = chargedType;
    }

    public BigDecimal getChargedPrice() {
        return chargedPrice;
    }

    public void setChargedPrice(BigDecimal chargedPrice) {
        this.chargedPrice = chargedPrice;
    }

    public Integer getChargedWay() {
        return chargedWay;
    }

    public void setChargedWay(Integer chargedWay) {
        this.chargedWay = chargedWay;
    }

    public Long getCurrentVersion() {
        return currentVersion;
    }

    public void setCurrentVersion(Long currentVersion) {
        this.currentVersion = currentVersion;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getEditor() {
        return editor;
    }

    public void setEditor(String editor) {
        this.editor = editor;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getEditTime() {
        return editTime;
    }

    public void setEditTime(Date editTime) {
        this.editTime = editTime;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }
}